<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/TGB.Master" CodeBehind="FrmRemitoCompra.aspx.vb" Inherits="TGB.FrmRemitoCompra" 
    title="Administracion de Remitos" %>

<%@ Register Assembly="eWorld.UI" Namespace="eWorld.UI" TagPrefix="ew" %>
<%@ Register Assembly="BasicFrame.WebControls.BasicDatePicker" Namespace="BasicFrame.WebControls"
    TagPrefix="BDP" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<script language="JavaScript" type="text/javascript">
    function popup(url)
        {
            var popup = window.open(url,"popup" ,"Width=700,Height=500,Scrollbars=NO,Resizable=NO,Location=NO,Menubar=NO,Status=NO,Titlebar=NO,Toolbar=NO");
        }
</script>
<script language="JavaScript" type="text/javascript">
    function popupdos(url)
        {
            var popupdos = window.open(url,"popupdos" ,"Width=700,Height=500,Scrollbars=NO,Resizable=NO,Location=NO,Menubar=NO,Status=NO,Titlebar=NO,Toolbar=NO");
        }
</script>

   <div id="DIV1" style="width: 100%; height: 1px; text-align: left; background-color: #ccccff; vertical-align: middle;" >
       &nbsp;
       <asp:Label ID="LblTitulo" runat="server" CssClass="titulo" Font-Underline="False"
           Height="8px" Text="Administracion de Remitos" Width="232px" Font-Names="Calibri"></asp:Label></div><hr /> 
        <div id="DIV3" style="width: 100%; height: 1px; text-align: center; background-color: #ccccff; vertical-align: middle;" >
       <asp:LinkButton ID="LinkRemitos" runat="server" TabIndex="3" style="letter-spacing: 3px; text-decoration: underline overline" Font-Names="Calibri" Font-Size="14px" Font-Underline="False" BackColor="Silver">Listado de Remitos</asp:LinkButton>/<asp:LinkButton
           ID="LinkNuevo" runat="server" Font-Names="Calibri" Font-Size="14px" Font-Underline="False"
           Style="letter-spacing: 3px; text-decoration: underline overline" TabIndex="3" BackColor="Silver">Nuevo Remito</asp:LinkButton></div><hr /> 
    <div style="width: 100%; height: 280px; text-align: center; background-color: #efefef; vertical-align: middle;" id="DIV2">
        <br />
    <table class="tabla" style="width: 696px; height: 80px; text-align: center;" >
        <tr>
            <td style="height: 21px; background-color: #ccccff;" align="left" >
                &nbsp;
                                  </td>
            <td align="right" style="height: 21px; background-color: #ccccff;">
                <asp:Label ID="Label1" runat="server" Text="Fecha" Font-Bold="True" CssClass="campotxt"></asp:Label></td>
            <td align="left" style="height: 21px; width: 153px; background-color: #ccccff;">
                &nbsp;
                <BDP:BasicDatePicker ID="TxtCalendario" runat="server" DateFormat="dd-MM-yyyy" DisplayType="LabelAndImage"
                    ReadOnly="True" ShowNoneButton="False">
                </BDP:BasicDatePicker>
            </td>
        </tr>
        <tr>
            <td align="left" style="background-color: #ccccff; width: 562px;">
                &nbsp; &nbsp;
                <asp:RangeValidator ID="RangeValidator2" runat="server" ErrorMessage="Punto de Venta Incorrecto"
                    MaximumValue="9999" MinimumValue="0001" Type="Integer" Visible="False" CssClass="BotonErrorSmall"></asp:RangeValidator>
                <asp:RangeValidator ID="RangeValidator3" runat="server" ControlToValidate="TxtSucursal"
                    ErrorMessage="Numero Incorrecto" MaximumValue="99999999" MinimumValue="00000001"
                    Type="Integer" Visible="False" CssClass="BotonErrorSmall"></asp:RangeValidator>&nbsp;
            </td>
            <td align="right" style="background-color: #ccccff;" colspan="2">
                <table style="width: 200px">
                    <tr>
                        <td style="width: 59px; height: 21px">
                <asp:Label ID="Label2" runat="server" Text="Remito  X" Font-Bold="True" CssClass="campotxt" Width="64px"></asp:Label></td>
                        <td style="width: 6px; height: 21px" align="right">
                            <asp:TextBox ID="TxtSucursal" runat="server" CssClass="campotxt" Font-Bold="True"
                                MaxLength="4" Width="32px">0000</asp:TextBox>&nbsp;</td>
                        <td style="height: 21px; width: 78px;" align="left">
                            <asp:TextBox ID="TxtNumero" runat="server" CssClass="campotxt" Font-Bold="True" MaxLength="8"
                                Width="64px">00000000</asp:TextBox></td>
                    </tr>
                </table>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td align="center" colspan="3" rowspan="1" style="background-color: #ccccff">
                <table style="width: 608px">
                    <tr>
                        <td style="height: 24px">
                            <asp:Label ID="LblProveedor" runat="server" Font-Bold="True" Text="Proveedor" CssClass="campotxt"></asp:Label></td>
                        <td colspan="2" style="height: 24px">
                <asp:TextBox ID="TxtProveedor" runat="server" CssClass="campotxt" Width="550px" ReadOnly="True" Font-Size="11px" Font-Bold="True" Height="16px"></asp:TextBox></td>
                        <td colspan="1" style="height: 24px">
                <asp:LinkButton ID="LinkBuscarConcepto" runat="server" TabIndex="3" CssClass="campotxt" ForeColor="Blue" >Buscar..</asp:LinkButton></td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td align="center" colspan="3" rowspan="2" style="background-color: #ccccff; height: 38px;">
                <table style="width: 592px">
                    <tr>
                        <td style="width: 124px">
                <asp:Label ID="Label6" runat="server" Font-Bold="True" Text="Condicion de Compra" CssClass="campotxt"></asp:Label></td>
                        <td colspan="2">
                <asp:DropDownList ID="CboCondicion" runat="server" CssClass="campotxt" Width="424px" TabIndex="4" AppendDataBoundItems="True" Font-Bold="True" AutoPostBack="True">
                    <asp:ListItem Value="-1">Condicion de Compra</asp:ListItem>
                    <asp:ListItem Value="15">Cuenta Corriente 15</asp:ListItem>
                    <asp:ListItem Value="30">Cuenta Corriente 30</asp:ListItem>
                    <asp:ListItem Value="60">Cuenta Corriente 60</asp:ListItem>
                </asp:DropDownList></td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
        </tr>
        <tr>
            <td align="center" colspan="3" style="background-color: #ccccff">
                &nbsp;<table style="width: 376px">
                    <tr>
                        <td>
                <asp:Label ID="Label3" runat="server" Text="Observacion" Font-Bold="True" CssClass="campotxt"></asp:Label></td>
                        <td colspan="2">
                <asp:TextBox ID="TxtObservacion" runat="server" CssClass="campotxt" TabIndex="5"
                    TextMode="MultiLine" Width="520px" Height="40px" MaxLength="40" Font-Size="11px" Rows="2"></asp:TextBox></td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td align="center" colspan="3" style="background-color: #ccccff">
                <asp:Label ID="Label4" runat="server" Text="Items del Remito" Width="744px" style="font-weight: bold; font-size: 14px; vertical-align: middle; font-family: Calibri; background-color: #ff3333; text-align: center" Height="24px"></asp:Label></td>
        </tr>
        <tr>
            <td align="center" colspan="3" style="background-color: #ccccff">
                <table style="width: 744px">
                    <tr>
                        <td style="width: 2px; height: 21px;">
                <asp:DropDownList ID="CboConcepto" runat="server" CssClass="campotxt" Width="496px" TabIndex="6" AppendDataBoundItems="True" Font-Bold="True">
                    <asp:ListItem Value="-1">Seleccione un Concepto</asp:ListItem>
                </asp:DropDownList></td>
                        <td style="width: 96px; height: 21px;">
                        </td>
                        <td style="width: 3px; height: 21px;">
                            <asp:Label ID="Label7" runat="server" Font-Bold="True" Text="Cantidad" CssClass="campotxt"></asp:Label></td>
                        <td style="width: 87px; height: 21px;">
                <asp:TextBox ID="TxtCantidad" runat="server" CssClass="campotxt" TabIndex="7" MaxLength="5" Font-Size="11px" Width="80px" Font-Bold="True"></asp:TextBox></td>
                        <td style="width: 2059px; height: 21px;">
                <asp:LinkButton ID="LinkAgregar" runat="server" TabIndex="8" CssClass="campotxt" ForeColor="Blue">Agregar</asp:LinkButton></td>
                    </tr>
                    <tr>
                        <td style="width: 2px">
                        </td>
                        <td style="width: 96px">
                        </td>
                        <td colspan="2">
                            <asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="TxtCantidad"
                                Display="Dynamic" ErrorMessage="Cantidad Incorrecta" MaximumValue="99999" MinimumValue="1"
                                Type="Integer">Cantidad Incorrecta</asp:RangeValidator></td>
                        <td style="width: 2059px">
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td align="center" colspan="3" rowspan="2" style="background-color: #ccccff">
                &nbsp;<asp:GridView ID="GridConcepto" runat="server" AutoGenerateColumns="False" Width="712px" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="4" ForeColor="Black" GridLines="Horizontal" CellSpacing="1" Font-Names="Calibri" Font-Size="12px">
                    <Columns>
                        <asp:TemplateField HeaderText="Concepto">
                            <ItemTemplate>
                                <asp:Label ID="LblDescripcion" runat="server" Text='<%# Bind("Descripcion") %>'></asp:Label>
                                <asp:HiddenField ID="HFCodigo" runat="server" Value='<%# Bind("CodigoConcepto") %>' />
                                &nbsp;
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Cantidad">
                            <ItemTemplate>
                                <asp:Label ID="LblCantidad" runat="server" Text='<%# Bind("Cantidad") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                &nbsp;<asp:LinkButton ID="LinkEliminar" runat="server" CommandName="Eliminar">Eliminar</asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <FooterStyle BackColor="#CCCC99" ForeColor="Black" Font-Names="Calibri" Font-Size="12px" />
                    <RowStyle HorizontalAlign="Center" Font-Names="Calibri" Font-Size="12px" />
                    <SelectedRowStyle BackColor="#CC3333" Font-Bold="True" ForeColor="White" Font-Names="Calibri" Font-Size="12px" />
                    <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Right" Font-Names="Calibri" Font-Size="12px" />
                    <HeaderStyle BackColor="#333333" Font-Bold="True" ForeColor="White" HorizontalAlign="Center" Font-Names="Calibri" Font-Size="12px" />
                    <EmptyDataRowStyle Font-Names="Calibri" Font-Size="12px" />
                    <EditRowStyle Font-Names="Calibri" Font-Size="12px" />
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td align="right" style="height: 21px; width: 153px; background-color: #ccccff;">
                </td>
        </tr>
        <tr>
            <td align="left" colspan="3" style="height: 22px">
                <table style="width: 776px">
                    <tr>
                        <td>
                        </td>
                        <td style="width: 3px">
                <asp:Label ID="Label5" runat="server" Font-Bold="True" Text="Total" CssClass="campotxt"></asp:Label></td>
                        <td style="width: 3px">
                <asp:TextBox ID="TxtTotal" runat="server" CssClass="campotxt" Font-Size="11px" ReadOnly="True" Width="80px"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td>
                        </td>
                        <td style="width: 3px">
                        </td>
                        <td style="width: 3px">
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td align="right" colspan="3" style="height: 22px">
                &nbsp;<asp:LinkButton ID="LinkGuardar" runat="server" TabIndex="9" CssClass="BotonLink">Guardar</asp:LinkButton> /
                <asp:LinkButton ID="LinkCancelar" runat="server" TabIndex="11" CssClass="BotonLink">Cancelar</asp:LinkButton>
            
            </td>
        </tr>
        <tr>
            <td align="left" colspan="3" style="height: 22px">
                <asp:Label ID="LblError" runat="server" Font-Bold="True" ForeColor="Red" Width="800px" CssClass="LabelError"></asp:Label></td>
        </tr>
        <tr>
            <td align="left" colspan="3" style="height: 7px">
                &nbsp;<asp:HiddenField ID="HFProveedor" runat="server" />
                <asp:HiddenField ID="HFRemito" runat="server" />
                <asp:HiddenField ID="HFAgrego" runat="server" />
                <asp:Button ID="BtnRefrescar" runat="server" BackColor="Transparent" BorderColor="Transparent" BorderStyle="None" ForeColor="Transparent" Height="0px" Width="0px" />
                &nbsp;&nbsp;&nbsp;
            </td>
        </tr>
        
    </table>
                <asp:HiddenField ID="HfCuenta" runat="server" />
        <br />
        </div>
    <hr style="height: 8px" />
    <div style="width: 100%; height: 100%; background-color: #efefef">
        </div>
</asp:Content>
